jQuery(document).ready(function($) {	
		$('#fd-select-include-pages > option').click(function () { 
      		var clickedoption = $(this).attr('value');
			var currentval = $('#fd_include_page').val()
			if ($('#fd_include_page').val() == ""){var comma = ''}else{var comma = ', '}
			$('#fd_include_page').val(currentval + comma + clickedoption);
    	});
		
		$('#fd-select-exclude-pages > option').click(function () { 
      		var clickedoption2 = $(this).attr('value');
			var currentval2 = $('#fd_exclude_page').val()
			if ($('#fd_exclude_page').val() == ""){var comma2 = ''}else{var comma2 = ', '}
			$('#fd_exclude_page').val(currentval2 + comma2 + clickedoption2);
    	});
		
		// Tabs
				$('#tabs').tabs();
				$('.tabs-minor').tabs();
		//hover states on the static widgets
				$('.fd-option-icon').hover(
					function() { $(this).addClass('ui-state-hover'); }, 
					function() { $(this).removeClass('ui-state-hover'); }
				);
		$('#fd-reset input').click( function(){ return confirm('Are you sure you want to reset everything?'); });
		
});// .eof .ready()